<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <body>

        <ui:composition template="./mainTemplate.xhtml">

            <ui:define name="menuVDirs">
                <li><a href="#" onClick="menuUpAndDown(this);">
                        Wirtualne foldery <img src="resources/images/dyn_down.gif" alt="Ukryj" /></a>
                    <ul class="submenu">
                        <li><h:outputLink value="/ISA/view/vDirList.xhtml">Lista</h:outputLink></li>
                        <li><h:outputLink value="/ISA/view/vDirAdd.xhtml">Dodaj</h:outputLink></li>
                    </ul>
                </li>
            </ui:define>
            
            <ui:define name="content">
                <h:form>
                    <h:panelGrid columns="2" cellpadding="5">
                        <h:outputLabel for="appName" value="Nazwa aplikacji: *" />
                        <p:inputText value="#{vDirControl.appName}" required="true" label="appName" />
                        <h:outputLabel for="path" value="Ścieżka: *" />
                        <p:inputText value="#{vDirControl.path}" required="true" label="path" />
                        <h:outputLabel for="physicalPath" value="Ścieżka fizyczna: *" />
                        <p:inputText value="#{vDirControl.physicalPath}" required="true" label="physicalPath" />

                        <p:commandButton value="Zapisz" update="growl" actionListener="#{vDirControl.add}" />
                        <p:button outcome="vDirList" value="Wróć"/>
                    </h:panelGrid> 
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
